<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo Configure::read('Site.charset'); ?>" xml:lang="<?php echo Configure::read('Site.charset'); ?>">
<head>
	<?php echo $html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?> /
		<?php echo Configure::read('Site.sitename'); ?>
	</title>
	<?php
		echo $html->meta('icon', $html->url('/img/favicon.ico'));
		
		echo $html->meta(Configure::read('Site.rss_title'), array('plugin'=>'posts', 'controller'=>'posts', 'action'=>'feed', 'ext'=>'rss'), array('type' => 'rss') );
		
		echo $html->css('/extend/css/thickbox');

		echo $html->css('gersh09');
		
		echo $html->css('dev');
		
		
		
		echo $javascript->link('/extend/js/jquery'); 
		
		echo $javascript->link('/extend/js/jquery.twitter'); 
		
		echo $javascript->link('/extend/js/thickbox'); 
		
		echo $javascript->link('gershapp'); 

		echo $scripts_for_layout;
	?>
</head>
<?php if($this->params['controller'] != "pages") {
	$body_id = $this->params['controller'];
} else {
	$body_id = $this->params['pass'][count($this->params['pass'])-1];
}?>
<body id="<?php echo $body_id; ?>">
	<div class="page">
	<div id="container"> 
		<div id="header">
			<?php //echo $this->element('account', array('plugin'=>'authake')); ?>
			<h1><?php echo $html->link(Configure::read('Site.sitename'), '/'); ?></h1>
			<p id="description">
				<strong><?php echo Configure::read('Site.description'); ?></strong>
				<em><?php echo Configure::read('Site.description2'); ?></em>
			</p>
			<?php if(isset($menu)):?>				
			<div id="menu">
				<?php echo $this->element('menu', array('plugin'=>'nodes', 'cache'=> array('key' => $this->here, 'time' => Configure::read('Settings.sitecache')), 'key'=>'test', 'menu'=>$menu), true); ?>
			</div>
			<?php endif; ?>
			
		</div>
		<div id="content">
			
			<?php $session->flash(); ?>
			<?php //debug($this_here); ?>
			<?php //debug($this->base); ?>
			<?php echo $content_for_layout; ?>

		</div>
		
		
		
	</div>
	<div id="footer">
		<?php echo $this->element('footer', array('cache'=> array('key' => $this->here, 'time' => '0'), 'key'=>'test'), true); ?>
	</div>
	
	</div>
	<div id="debug">
	<?php echo $cakeDebug; ?>
	</div>
	<?php echo Configure::read('Site.footer'); ?>
</body>
</html>